package com.right.health.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * Created by hopeliao on 2019-12-01
 *
 */
public class ChooseMemberInfo implements Parcelable {
     public String name;
     public String id;
     public String sex;

    public ChooseMemberInfo(String id, String sex) {
       this("本人", id, sex);
    }




    public ChooseMemberInfo(String name, String id, String sex) {
        this.name = name;
        this.id = id;
        this.sex = sex;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.id);
        dest.writeString(this.sex);
    }

    protected ChooseMemberInfo(Parcel in) {
        this.name = in.readString();
        this.id = in.readString();
        this.sex = in.readString();
    }

    public static final Parcelable.Creator<ChooseMemberInfo> CREATOR = new Parcelable.Creator<ChooseMemberInfo>() {
        @Override
        public ChooseMemberInfo createFromParcel(Parcel source) {
            return new ChooseMemberInfo(source);
        }

        @Override
        public ChooseMemberInfo[] newArray(int size) {
            return new ChooseMemberInfo[size];
        }
    };
}
